import request from '../utils/request'

// 获取城市列表数据
export const getCityList = () => {
  return request({
    url: 'area/city?level=1'
  })
}

// 获取热门城市数
export const getHotCityList = () => {
  return request({
    url: 'area/hot'
  })
}

// 根据城市名字获取城市信息
export const getCityInfo = cityName => {
  return request({
    url: `area/info?name=${cityName}`
  })
}
